<?php


namespace app\api\controller;



use app\api\model\AnchorModel;
use app\api\model\CategoryModel;

class Anchor extends ApiBase
{

    /**
     *
     * 主播分类信息
     */
    public function cateList(){

        $data = CategoryModel::cateList();
        $this->successful('查询成功',$data);
    }

    /**
     *
     * 主播信息列表
     *
     */
    public function anchorList(){

        $params = $this->request->post();
        $data = AnchorModel::anchorList($params);
        $this->successful('查询成功',$data);
    }

}